//
//  NSData+Plist.h
//  JQKit
//
//  Created by JQZ on 2018/1/9.
//  Copyright © 2018年 JQZ. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSData (Plist)

/**
 *  Property list data to (NSArray or NSDictionary)
 *
 *  @param error 错误返回
 */
- (id)propertyListFromPlistDataWithError:(out NSError **)error;

/**
 *  Property list to NSData
 *
 *  @param error 错误返回
 */
+ (NSData *)dataWithPropertyList:(id)plist error:(out NSError **)error;

@end
